// JavaScript Document

//产品展示字体颜色
$("#firstpage").css("color","#F3E092");
//产品展示字体颜色结束

//logo滚动
var left=1600;
var to=(-300);
var y=0;
var dsq=setTimeout("move()",10);
var logo=document.getElementById("logo");
dsq=setTimeout("movetop()",10);
function movetop(){
to+=4;
logo.style.marginTop=to+"px";
dsq1=setTimeout("movetop()",32);
if(to==200){
clearTimeout(dsq1);	
actionlogo();
actionlogo2();
}
}
//logo滚动结束

//logo动态
var moleft=300;
var motop=200;
function actionlogo(){
	moleft++;
	$("#logo").animate({marginLeft:moleft+"px"},20,"linear",function(){
		dsq=setTimeout("actionlogo()",20);
		if(moleft==500){
			clearTimeout(dsq);
			actionlogo1();
			}
		});
}
function actionlogo1(){
	moleft--;
	$("#logo").animate({marginLeft:moleft+"px"},20,"linear",function(){
		dsq=setTimeout("actionlogo1()",20);
		if(moleft==260){
			clearTimeout(dsq);
			actionlogo();
			}
		});
}
function actionlogo2(){
	motop++;
	$("#logo").animate({marginTop:motop+"px"},10,"linear",function(){
		dsq=setTimeout("actionlogo2()",10);
		if(motop==260){
			clearTimeout(dsq);
			actionlogo3();
			}
		});
}
function actionlogo3(){
	motop--;
	$("#logo").animate({marginTop:motop+"px"},10,"linear",function(){
		dsq=setTimeout("actionlogo3()",10);
		if(motop==150){
			clearTimeout(dsq);
			actionlogo2();
			}
		});
}
//logo动态结束

//文字滚动
var wenzileft=1600;
var wenzileft1=1600;
wenziaction();
wenziaction1();
function wenziaction(){
	wenzileft-=5;
$("#wenzi1").animate({marginLeft:wenzileft+"px"},10,"swing",function(){
	dsq=setTimeout("wenziaction()",10);
	if(wenzileft==900){
		clearTimeout(dsq);
		}
	});	
}
function wenziaction1(){
	wenzileft1-=5;
$("#wenzismall1").animate({marginLeft:wenzileft1+"px"},10,"swing",function(){
	dsq=setTimeout("wenziaction1()",10);
	if(wenzileft1==750){
		clearTimeout(dsq);
		}
	});	
}
//文字滚动结束

//“带你去追寻” 滚动
var goleft=1600;
goaction();
function goaction(){
	goleft-=5;
	$("#going").animate({marginLeft:wenzileft+"px"},10,"swing",function(){
		dsq=setTimeout("goaction()",10);
		if(goleft==1200){
		clearTimeout(dsq);
		}
		});
}
//“带你去追寻” 滚动结束

//“带你去追寻” 移入移出
$("#going").mouseover(function(){
	$("#going").css("background-image","linear-gradient(to left,#FFF,#CCC,#999,#888,#777,#666,#555,#444,#333,#222,#111,#000)");
	$("#going").css("opacity","0.4");
	$(".gowenzi").css("color","#FFF");
	});
$("#going").mouseout(function(){
	$("#going").css("background","none");
	$(".gowenzi").css("color","#FFF");
	$("#going").css("opacity","1");
	});
//“带你去追寻” 移入移出结束

//登陆移入移出事件
$(".loginall").mouseover(function(){
	$(".loginall").css("opacity","0.8");
	});
$(".loginall").mouseout(function(){
	$(".loginall").css("opacity","0.4");
	});
	//登陆移入移出事件结束
	
//登陆点击事件
var co=0;
function cl(){
	if(co==2){
		co=0;
		}
	if(co==0){
	$(".loginkuang").animate({marginLeft:"-10px"},800,"swing");
	}
	if(co==1){
	$(".loginkuang").animate({marginLeft:"-400px"},800,"swing");
	}
	co++;
}
//登陆点击事件结束

//登录移入移出事件
$(".sub").mouseover(function(){
	$(".sub").css("background-image","linear-gradient(to left,rgba(255,255,255,0.2),rgba(204,204,204,0.2),rgba(180,180,180,0.2),rgba(150,150,150,0.2),rgba(120,120,120,0.2),rgba(100,100,100,0.2),rgba(80,80,80,0.2),rgba(40,40,40,0.2)50%)");						 
});
$(".sub").mouseout(function(){
	$(".sub").css("background-image","linear-gradient(to left,rgba(255,255,255,0.4),rgba(204,204,204,0.4),rgba(180,180,180,0.4),rgba(150,150,150,0.4),rgba(120,120,120,0.4),rgba(100,100,100,0.4),rgba(80,80,80,0.4),rgba(40,40,40,0.4)50%)");						 
});
//登录移入移出事件结束

//注册移入移出事件
$(".registered").mouseover(function(){
	$(".registered").css("background-image","linear-gradient(to left,rgba(255,255,255,0.6),rgba(204,204,204,0.6),rgba(180,180,180,0.6),rgba(150,150,150,0.6),rgba(120,120,120,0.6),rgba(100,100,100,0.6),rgba(80,80,80,0.6),rgba(40,40,40,0.6)80%)");						 
});
$(".registered").mouseout(function(){
	$(".registered").css("background-image","linear-gradient(to left,rgba(255,255,255,0.4),rgba(204,204,204,0.4),rgba(180,180,180,0.4),rgba(150,150,150,0.4),rgba(120,120,120,0.4),rgba(100,100,100,0.4),rgba(80,80,80,0.4),rgba(40,40,40,0.4)80%)");						 
});
//注册移入移出事件结束

//QQ图标移入移出事件
$(".qqph1").mouseover(function(){
	$(".qqph1").css("opacity","0.9");
});
$(".qqph1").mouseout(function(){
	$(".qqph1").css("opacity","0.6");
});
//QQ图标移入移出事件结束

//微信图标移入移出事件
$(".weixinph1").mouseover(function(){
	$(".weixinph1").css("opacity","0.9");
});
$(".weixinph1").mouseout(function(){
	$(".weixinph1").css("opacity","0.6");
});
//微信图标移入移出事件结束
